//Wed Sep 28 18:19:03 PDT 2011
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;

public class WhichDay
{
	public String getDay(String[] notOnThisDay)
	{
		int sum = (1 + 7) * 7 / 2;
		for(String str : notOnThisDay){
			sum -= getNumber(str);
		}
		return getDays(sum);
	}
	
	public int getNumber(String s){
		if(s.compareTo("Sunday") == 0) return 7;
		if(s.compareTo("Saturday") == 0) return 6;
		if(s.compareTo("Friday") == 0) return 5;
		if(s.compareTo("Thursday") == 0) return 4;
		if(s.compareTo("Wednesday") == 0) return 3;
		if(s.compareTo("Tuesday") == 0) return 2;
		if(s.compareTo("Monday") == 0) return 1;
		return 0;
	}
	
	public String getDays(int n){
		if(n == 1) return "Monday";
		if(n == 2) return "Tuesday";
		if(n == 3) return "Wednesday";
		if(n == 4) return "Thursday";
		if(n == 5) return "Friday";
		if(n == 6) return "Saturday";
		if(n == 7) return "Sunday";
		return "None";
	}	
}
//Powered by [KawigiEdit] 2.0!
